package org.bot.plugin.window.event;

import org.bot.api.event.DataStorage;
import org.bot.api.event.EventName;
import org.bot.api.event.Events;
import org.bot.api.flow.FlowNode;
import org.bot.plugin.window.tool.WindowOperate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author 沧月
 * @create 0014 2023/10/14 20:12
 * @description <模拟用户键盘输入>
 */
@Component
@EventName("键盘输入（window）")
public class WindowKeyboard implements Events {

    @Autowired
    WindowOperate operate;

    @Override
    public Object exec(FlowNode note, DataStorage data) {
        return operate.keyboard(note.getArg());
    }

}
